.markdown-body ul.contains-task-list {
  padding-left: 0;
}

input[type='checkbox'] {
  appearance: none;
  border: 2px solid #888;
  border-radius: 2px;
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.markdown-body .task-list-item {
  display: flex;
  align-items: center;
}
.task-list-item input[type='checkbox'] {
  position: relative;
}

input[type='checkbox']:checked:after {
  content: '';
  top: -1px;
  left: -1px;
  position: absolute;
  width: 16px;
  height: 16px;
  display: block;
  background-color: #fff;
  mask-position: 40% 40%;
  mask-size: 70%;
  mask-repeat: no-repeat;
  mask-image: url('data:image/svg+xml; utf8, <svg width="12px" height="10px" viewBox="0 0 12 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-4.000000, -6.000000)" fill="%23000000"><path d="M8.1043257,14.0367999 L4.52468714,10.5420499 C4.32525014,10.3497722 4.32525014,10.0368095 4.52468714,9.8424863 L5.24777413,9.1439454 C5.44721114,8.95166768 5.77142411,8.95166768 5.97086112,9.1439454 L8.46638057,11.5903727 L14.0291389,6.1442083 C14.2285759,5.95193057 14.5527889,5.95193057 14.7522259,6.1442083 L15.4753129,6.84377194 C15.6747499,7.03604967 15.6747499,7.35003511 15.4753129,7.54129009 L8.82741268,14.0367999 C8.62797568,14.2290777 8.3037627,14.2290777 8.1043257,14.0367999"></path></g></g></svg>');
}
input[type='checkbox']:checked {
  background-color: #1677ff;
  border-color: #1677ff;
}
.markdown-body ul.contains-task-list li.task-list-item {
  list-style-type: none;
}

.code__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  height: 30px;
  line-height: 30px;
}
.code__tools_right {
  width: 75px;
}
.code__tools {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  width: 75px;
}
.markdown-body .code__header + pre code {
  padding-top: 0;
}

.code__circle {
  display: inline-block;
  align-items: center;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  padding: 1px;
  border-radius: 50%;
}
.red {
  background-color: #ff605c;
}

.yellow {
  background-color: #ffbd44;
}

.green {
  background-color: #00ca4e;
}
.qrcode-block {
  border: 1px solid #efefef;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.qrcode-block img {
  display: block;
}
.qrcode-box {
  border-radius: 0.25rem;
  display: flex;
  justify-content: space-between;
  padding-left: 1rem;
  color: #718096;
}

.qrcode-text {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  word-break: break-all;
  font-size: 14px;
  font-weight: 600;
  width: calc(100% - 96px);
  color: #718096;
}

.qrcode-url {
  font-weight: normal;
  font-family: ptima-Regular, Optima, PingFangSC-light, PingFangTC-light,
    'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
.qrcode-block .qrcode-img img {
  border: 0;
}
.qrcode-img {
  width: 90px;
  height: 90px;
  margin-left: 4px;
  flex-shrink: 0;
}
.markdown-body {
  line-height: 1.75;
  font-size: 16px;
  padding: 0 8px;
}

/*表格*/
.markdown-body table {
  display: table;
  text-align: left;
  width: auto;
}

/* 表格最小列宽4个汉字 */
.markdown-body table tr th:nth-of-type(n),
.markdown-body table tr td:nth-of-type(n) {
  min-width: 85px;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid #ccc;
}
.markdown-body figcaption {
  text-align: center;
  font-size: 14px;
}

.markdown-body .footnote-ref {
  font-size: 75%;
  vertical-align: 4px;
  padding-left: 4px;
  font-weight: bold;
}

.markdown-body .footnote-item {
  display: flex;
  font-size: 14px;
}

.markdown-body .footnote-num {
  display: inline;
  width: 10%; /*神奇，50px就不可以*/
  background: none;
  font-size: 80%;
  opacity: 0.6;
  line-height: 26px;
  font-family: ptima-Regular, Optima, PingFangSC-light, PingFangTC-light,
    'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.markdown-body .footnote-item .footnote-content {
  display: inline;
  font-size: 14px;
  width: 90%;
  padding: 0px;
  margin: 0;
  line-height: 26px;
  word-break: break-all;
}

.markdown-body code {
  max-width: unset !important;
}

.markdown-body pre[class*='language-'] {
  padding: 0;
}
pre {
  overflow-x: auto;
}
/*引用*/
.markdown-body blockquote {
  background-color: var(--weui-BG-0);
  padding: 1px 16px;
  margin: 16px 0;
  border-radius: 5px;
}
/*行内代码*/
.markdown-body p code:not(pre code),
.markdown-body li code:not(pre code) {
  font-size: 14px;
  word-break: break-word;
  padding: 2px 4px;
  border-radius: 4px;
  margin: 0 2px;
  color: var(--weui-BRAND);
  background-color: var(--weui-BG-0);
  font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;
}

/**
 * Inspired by gatsby remark prism - https://www.gatsbyjs.com/plugins/gatsby-remark-prismjs/
 * 1. Make the element just wide enough to fit its content.
 * 2. Always fill the visible space in .code-highlight.
 */
.code-highlight {
  float: left; /* 1 */
  min-width: 100%; /* 2 */
}

.code-line {
  display: block;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: -16px;
  margin-right: -16px;
  border-left: 4px solid rgba(0, 0, 0, 0); /* Set placeholder for highlight accent border color to transparent */
}

.code-line.inserted {
  background-color: rgba(16, 185, 129, 0.2); /* Set inserted line (+) color */
}

.code-line.deleted {
  background-color: rgba(239, 68, 68, 0.2); /* Set deleted line (-) color */
}

.highlight-line {
  margin-left: -16px;
  margin-right: -16px;
  background-color: rgba(55, 65, 81, 0.5); /* Set highlight bg color */
}

.line-number::before {
  display: inline-block;
  width: 1rem;
  text-align: right;
  margin-right: 16px;
  margin-left: -8px;
  color: rgb(156, 163, 175); /* Line number color */
  content: attr(line);
}

.solarizedlight .highlight-line {
  background-color: rgba(255, 193, 7, 0.5);
}
.coy .highlight-line {
  background-color: #fff8c5;
}

.default .highlight-line {
  background-color: rgba(55, 65, 81, 0.5);
}
.materialLight .highlight-line {
  background-color: rgba(55, 65, 81, 0.2); /* Set highlight bg color */
}

.callout {
  border-radius: 5px;
  padding: 12px 16px;
  margin: 16px 0;
  border-left: 4px solid #10aeff;
  background-color: rgba(16, 174, 255, 0.1);
}

.callout-title {
  font-weight: bold;
  margin-bottom: 4px;
  color: #10aeff;
  display: flex;
  align-items: start;
  text-transform: capitalize;
}
.callout-title svg {
  margin-right: 8px;
}
.callout-content {
  line-height: 1.5;
}

.markdown-body .callout-content p {
  margin: 0;
}

.callout-success {
  background-color: rgba(6, 174, 86, 0.1);
  border-left: 4px solid #3eb575;
}
.callout-success .callout-title {
  color: #3eb575;
}

.callout-warning {
  background-color: rgba(250, 157, 59, 0.1);
  border-left: 4px solid #fa9d3b;
}

.callout-warning .callout-title {
  color: #fa9d3b;
}

.callout-error {
  background-color: rgba(250, 81, 81, 0.1);
  border-left: 4px solid #fa5151;
}

.callout-error .callout-title {
  color: #fa5151;
}

.callout-tip {
  background-color: rgba(0, 191, 188, 0.1);
  border-left: 4px solid rgb(0, 191, 188);
}

.callout-tip .callout-title {
  color: rgb(0, 191, 188);
}
